package com.example.nxtpt.mapper;

import com.example.nxtpt.bean.User;
import org.apache.ibatis.annoction.Inser;
import org.apache.ibatis.annoction.Mapper;
import org.apache.ibatis.annoction.Select;
@Mapper
public interface UserMapper {
    @Select("select * from tb_user where user_name=#(username)")
    public User findOne(String username);
    @Insert ("insert into tb_user(user_name,password,nick_name,create_Time,update_Time) values(#(user_name),#(password),#(nick_mame),now(),now())")
    public void save(User user);
    public void update(User user);

}
